Ext.define('Jason.view.protal.module.systemManager.monitor.onLine.MainView',{
	extend : 'Wys.basic.BaseView',
	xtype : 'systemManager_monitor_onLineView',
	enabledRightMenu : true,
	columns : [
		{xtype:'rownumberer',text:'序号',align : 'center',width : 50},
		{text : '登录帐号',dataIndex:'',flex:1.8,menuDisabled:true},
		{text : '登录人',dataIndex:'',flex:1,menuDisabled:true},
		{text : '登录时间',dataIndex:'',flex:1},
		{text : '登录IP',dataIndex:'',flex:1,menuDisabled:true},
		{text : '登录地点',dataIndex:'',flex:1.5,menuDisabled:true},
		{text : '登录时长',dataIndex:'',flex:1},
		{
           xtype:'command',
           text:'操作',
           align:'center',
           width : 80,
           commands : [
			   { command: "preview",text:'<i class="fa fa-sign-out fa-lg"></i>强制下线',tooltip:{text:'强制下线'},cls:'radiusBtn command-info-color'}
           ],
           listeners: {
			   prepareCommands: 'onGridRepareCommands',
               command: 'onGridCommand'
           }
		}
	],
	dockedItems: [{
       xtype: 'pagingtoolbar',
       bind : '',
       enabledMoreOpt : true,
       dock: 'bottom'
	},{
		xtype : 'toolbar',
		dock : 'top',
		items : [{
			xtype : 'button',
			handler : function(btn){
				var useFilter = btn.up('baseView').down('useFilter');
				if(useFilter.hidden)
					useFilter.show();
				else
					useFilter.hide();
					
			},
			iconCls : 'fa fa-filter'
		},{
				xtype : 'gridsearchfield'
			},'->'
		]
	}]
});